import axios from 'axios';
import {ajax,base} from './config'

/**
*知识库管理
*/
//知识库类别列表数据
export const knowledgeBaseType = params => { return axios.post(`${base}knowledgeBaseTypeController/datagrid.do`, params); };
//知识库类别删除
export const knowledgeDel = params => { return ajax.postData({url:`${base}knowledgeBaseTypeController/doDel.do`, params}); };
//知识库类别录入
export const knowledgeAdd = params => { return ajax.postData({url:`${base}knowledgeBaseTypeController/doAdd.do`, params}); };
//知识库类别编辑
// export const knowledgeUpdate = params => { return ajax.postData({url:`${base}knowledgeBaseTypeController.do?doUpdate`, params}); };
//知识库列表
export const knowledgeBase = params => { return ajax.getMinData({url:`${base}knowledgeBaseController/datagrid.do`, params}); };

//姚思敏新增 
//知识库管理录入
export const knowledgeBaseAdd = params => { return ajax.postData({url:`${base}knowledgeBaseController/doAdd.do`, params}); };
//知识库管理编辑
export const knowledgeBaseUpdate = params => { return ajax.postData({url:`${base}knowledgeBaseController/doUpdate.do`, params}); };
//知识库管理删除
export const knowledgeBaseDel = params => { return ajax.postData({url:`${base}knowledgeBaseController/doDel.do`, params}); };
//知识库管理查看
export const knowledgeBaseView = params => { return axios.post(`${base}knowledgeBaseController/getKnowledgeBaseById.do`, params); };